package com.yanqu.road.entity.log.cross.suitang;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_suitang_lock", desc = "逐鹿隋唐-锁定日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "chasedeer_part", isCross = true)
public class LogCrossSuiTangLock extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityId")
    private int activityId;
    @FieldTypeAnnotation(desc = "分组ID", isIndex = true, dataAttribute = "chasedeer_groid")
    private int groupId;
    @FieldTypeAnnotation(desc = "商会ID", dataAttribute = "chasedeer_guild")
    private String unionId;
    @FieldTypeAnnotation(desc = "成员列表", dataAttribute = "chasedeer_member", saveJson = true)
    private List<Long> member;
    @FieldTypeAnnotation(desc = "商会总赚速", dataAttribute = "chasedeer_speed")
    private long totalEarnSpeed;

    public LogCrossSuiTangLock(int activityId, int groupId, String unionId, List<Long> member, long totalEarnSpeed) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.member = member;
        this.totalEarnSpeed = totalEarnSpeed;
    }

    @Override
    public long getUserId() {
        // 跟角色无关的数数日志，此处直接返回0，已经跟需求方沟通
        return 0;
    }

}
